<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>">
<title>完善个人信息</title>
<link type="text/css" rel="stylesheet" href="include/css/main.css" />
<link type="text/css" rel="stylesheet" href="include/css/personal.css" />
<script type="text/javascript" src="include/script/jquery.js" ></script>
<script type="text/javascript" src="include/script/main_ui_control.js"></script>
<script type="text/javascript">

function check_form(){
	var b = true;
	$("input[type!='button'],select,textarea").each(function(){
		if(this.name!="student.phone"&&this.value==""||this.value==null)b=false;
		return b;
	});
	if(!b)$("input[name='submit_btn']").attr("disabled","disabled");
	else $("input[name='submit_btn']").attr("disabled","");
}

window.onload = function(){
	//绘制菜单背景，需要html5支持
	drawBG();
	//菜单动画
	//menu_animation();
	//菜单事件绑定
	
	//表单验证
	check_form();
	$("input[type!='button'],select,textarea").keyup(check_form);
	
};
</script>
</head>

<body>
<s:action name="getStudentRequest"></s:action>
<s:set name="stu" value="#request.stu"/>
  
<div class="content">
	
    <div class="details">

	<s:form action="editInfoAction!saveStudentInfo" method="post" style="white-space:nowrap" theme="simple">

    	<h>个人信息</h>
    	<ul>
    		<li><strong>*</strong><span>姓名:</span>
    			<s:textfield  theme="simple" name="student.name" ></s:textfield>
    		</li>
    		<li><strong>*</strong><span>性别:</span>
  				<s:radio theme="simple" list="{'男','女'}" name="student.sex" value="'男'"></s:radio>
  			</li>
    	
        	<li><strong>*</strong><span>学院:</span>        	
        		<s:textfield theme="simple" name="student.faculty" ></s:textfield>
    		</li>
    		
        <!--     <select name="school">
            <option value="国际软件学院">国际软件学院</option>
            </select>
		 -->
            
            <li><strong>*</strong><span>年级：</span>
            	 <s:select theme="simple" list="{'2012','2011','2010','2009','2008','2007','2006','2005','2004','2003'}" name="student.grade" ></s:select>
  			 </li>
         <!-- 
            <select name="year">
            <option value="2009">2009级</option>
            </select>
            --> 
            
            <li><strong>&nbsp;</strong><span>电话：</span><s:textfield  theme="simple" name="student.phone" ></s:textfield>  </li>
            <li><strong>*</strong><span>邮件：</span><s:textfield theme="simple"  name="student.regularEmail" ></s:textfield></li>
            <li><strong>*</strong><span>状态：</span>
             	<s:radio theme="simple" label="状态" list="{'忙碌','空闲'}" name="student.status" value="'空闲'"></s:radio>
            </li>
  			<li><strong>*</strong><span>性格：</span><br/> <s:textarea  theme="simple" name="student.introduce " ></s:textarea></li>
       </ul>     
  	<!-- 
            <select name="status">
            <option value="忙碌">忙碌</option>
            </select>
             -->
 <h>专业相关</h>
        <ul>
        	<li><strong>*</strong><span>科研经历：</span><br />
            	<s:textarea name="student.experience "></s:textarea>
            </li>
            <li><strong>*</strong><span>专业擅长：</span><br />
            	<s:textarea name="student.skill"></s:textarea>
            </li>
        </ul>
        <input type="submit" value="保存修改" name="submit_btn" /><input type="reset" value="取消" />
    </s:form>
    </div>
</div>        

<!-- 
<div id="_bottom_menu">
    <ul id="bottom_menu_left">
        <li id="menu_item_personlainfo">个人资料</li>
        <li id="menu_item_interaction">师生互动</li>
    </ul>
    <ul id="bottom_menu_right">
        <li id="menu_item_personla">个人中心</li>
        <li id="menu_item_project">科研课题</li>
        <li id="menu_item_search">查找</li>
        <li id="menu_item_others">其他</li>
    </ul>
    <canvas id="bg_canvas_left"></canvas>
    <canvas id="bg_canvas_right"></canvas>
</div>
 -->
<script language="javascript">

</script>
</body>
</html>


